/**
 * Copyright &copy; 2012-2014 <a href="https://github.com/thinkgem/jeesite">JeeSite</a> All rights reserved.
 */
package com.thinkgem.jeesite.modules.warehouse.dao;

import java.util.List;

import com.thinkgem.jeesite.common.persistence.CrudDao;
import com.thinkgem.jeesite.common.persistence.annotation.MyBatisDao;
import com.thinkgem.jeesite.modules.warehouse.entity.BIWarehouseKpiData;
import com.thinkgem.jeesite.modules.warehouse.entity.WarehouseKpiMonitoring;

/**
 * 仓库KPI监控DAO接口
 * @author hui.li
 * @version 2016-12-23
 */
@MyBatisDao
public interface WarehouseKpiMonitoringDao extends CrudDao<WarehouseKpiMonitoring> {
	public List<BIWarehouseKpiData> findAllListBIWarehouseKpi(BIWarehouseKpiData data);
	public List<BIWarehouseKpiData> findAllListBIWarehouseKpi2(BIWarehouseKpiData data);
	public List<BIWarehouseKpiData> findAllListTemplateBIWarehouseKpi(BIWarehouseKpiData data);
	public List<BIWarehouseKpiData> findAllListTemplateBIWarehouseKpi2(BIWarehouseKpiData data);
	/**
	 * 查询没有被同步的原始数据
	 * 
	 * @param data
	 * @return
	 */
	public List<BIWarehouseKpiData> queryWarehouseAttendance();

	/**
	 * 查询没有被同步的分组后数据
	 * 
	 * @param data
	 * @return
	 */
	public List<BIWarehouseKpiData> syncWarehouseAttendance();

	/**
	 * 根据ID修改同步的状态
	 * @param list
	 * @return
	 */
	public int updateStatus(BIWarehouseKpiData data);
}